home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Apple II Sample Code / APW.SC / SC17Darts / Darts.c / UGlobals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-24  |  1.0 KB  |  43 lines  |  [TEXT/pdos]

  1. /***********************************************************************
  2. *
  3. * darts uglobals.c -- Version 3.0 
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.  1986-1990
  7. * All Rights Reserved.
  8. *
  9. * Developer Technical Support Apple II Sample Code
  10. *
  11. * This file contains the global variables used by the program.
  12. *
  13. ***********************************************************************/
  14.  
  15. #include <types.h>
  16. #include <event.h>
  17. #include <list.h>
  18. #include <memory.h>
  19. #include <quickdraw.h>
  20. #include <window.h>
  21. #include "darts.h"
  22.  
  23. unsigned int    crickettTables[NumPlayers][26], score[NumPlayers];
  24. unsigned int    listEntries[NumPlayers];
  25. unsigned int    userID, quitFlag, gameType, weHaveAWinner, firstUpdateComplete;
  26.  
  27. MyMemRecHndl    scoreList[NumPlayers];
  28. WmTaskRec       event;
  29. GrafPortPtr     theWindow;
  30.  
  31. char            scoreStrings[NumPlayers][64];
  32. char            *scoreStringArray[NumPlayers] = {
  33.     scoreStrings[0], scoreStrings[1]
  34. };
  35.  
  36.  
  37. void    initGlobals()       /* Setup variables. */
  38. {
  39.     score[Player1] = score[Player2] = 0;
  40.     
  41.     gameType = 0;
  42. }
  43.